package com.zsj.comminlibrary.base;

import android.app.Activity;
import android.app.Application;
import android.os.Bundle;

import com.zsj.comminlibrary.util.log.XLog;

public class BaseActivityObserver implements Application.ActivityLifecycleCallbacks {
    @Override
    public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
        XLog.i("ActivityObserver onCreated "+activity.getComponentName());
    }

    @Override
    public void onActivityStarted(Activity activity) {
        XLog.i("ActivityObserver onStarted "+activity.getComponentName());
    }

    @Override
    public void onActivityResumed(Activity activity) {
        XLog.i("ActivityObserver Resumed "+activity.getComponentName());
    }

    @Override
    public void onActivityPaused(Activity activity) {
        XLog.i("ActivityObserver Paused "+activity.getComponentName());
    }

    @Override
    public void onActivityStopped(Activity activity) {
        XLog.i("ActivityObserver Stopped "+activity.getComponentName());
    }

    @Override
    public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
    }

    @Override
    public void onActivityDestroyed(Activity activity) {
        XLog.i("ActivityObserver Destroyed "+activity.getComponentName());
    }
}
